import request from '@/utils/request'

// 上传资料
export function uploadByProperty(query) {
  return request({
    url: '/dfile/file/uploadByProperty',
    method: 'POST',
    data: query
  })
}

// 删除资料
export function deleteFileProperty(query) {
  return request({
    url: `/dfile/file/${query}`,
    method: 'DELETE'
  })
}

// 获取资料
export function getFiles(query) {
  return request({
    url: '/dfile/file/listByPropertyForeignId/',
    method: 'GET',
    params: query
  })
}
